package com.rising.face.ali.bishi.threadprint;

/**
 * @Author: rising
 * @Description:
 * @Date: create in 2021/1/10 14:47
 */
public class ThreadPrintTest {
    public static void main(String[] args) {
        ThreadPrint dataSource = new ThreadPrint();
        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                dataSource.publicPrint5();
            }
        },"AA").start();

        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                dataSource.publicPrint10();
            }
        },"BB").start();

        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                dataSource.publicPrint15();
            }
        },"CC").start();
    }
}
